<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<ul class="ancestorList">
    <logic:iterate name="ancestorValues" id="ancestor" indexId="ancestorNum">
        <li>
            <html:link action="showNode.do" paramId="nodeId" paramName="ancestor" paramProperty="id">
                <img src="
                    <logic:equal name="ancestor" property="class.simpleName" value="Action"><html:rewrite page='/icons/action-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="Anchor"><html:rewrite page='/icons/anchor-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="ContactDetailTypes"><html:rewrite page='/icons/contactdetail-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="Department"><html:rewrite page='/icons/department-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="Directory"><html:rewrite page='/icons/directory-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="Group"><html:rewrite page='/icons/group-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="Issue"><html:rewrite page='/icons/issue-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="LicenceManagement"><html:rewrite page='/icons/licencemanagement-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="LoginHistory"><html:rewrite page='/icons/loginhistory-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="Node"><html:rewrite page='/icons/node-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="RootNode"><html:rewrite page='/icons/node-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="Organisation"><html:rewrite page='/icons/organisation-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="Person"><html:rewrite page='/icons/person-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="Project"><html:rewrite page='/icons/project-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="Role"><html:rewrite page='/icons/role-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="Sprint"><html:rewrite page='/icons/sprint-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="State"><html:rewrite page='/icons/state-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="Status"><html:rewrite page='/icons/status-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="SystemNode"><html:rewrite page='/icons/systemnode-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="SystemProperties"><html:rewrite page='/icons/systemproperty-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="TaskStateMachine"><html:rewrite page='/icons/task-16x16.png'/></logic:equal>
                    <logic:equal name="ancestor" property="class.simpleName" value="User"><html:rewrite page='/icons/user-16x16.png'/></logic:equal>
                ">
                <beans:write name="ancestor" property="name"/>
            </html:link>
        </li>
    </logic:iterate>
</ul>